﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.ADs
{
    public static class ADBLL
    {
        public static int GetADCount(IList<Condition> conditionArray)
        {
            return ADDAL.GetADCount(conditionArray);
        }

        public static List<ADEntity> GetADList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return ADDAL.GetADList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static ADEntity[] GetADArray()
        {
            return ADDAL.GetADArray();
        }

        public static ADEntity GetAD(int articleID)
        {
            return ADDAL.GetAD(articleID);
        }

        public static ADEntity GetAD(string code, int provinceID, int cityID)
        {
            return ADDAL.GetAD(code, provinceID, cityID);
        }

        public static int InsertAD(ADEntity article)
        {
            return ADDAL.InsertAD(article);
        }

        public static int UpdateAD(ADEntity article)
        {
            return ADDAL.UpdateAD(article);
        }

        public static int DeleteAD(int articleID)
        {
            return ADDAL.DeleteAD(articleID);
        }

        public static int SetADEnable(int articleID)
        {
            return ADDAL.SetADEnable(articleID);
        }

        public static void SetPass()
        {
            ADDAL.SetPass();
        }
    }
}
